<?php
// 本类由系统自动生成，仅供测试用途
class IndexAction extends Action {
    public function index(){
//        echo "hello world";
        /**
         * URL_MODEL
         * 1默认模式 pathinfo 模式 1 : http://localhost/project/thinkphp_project/index.php/Index/user/id/1.html
         * 0普通模式:http://localhost/project/thinkphp_project/index.php?m=Index&a=user&id=1
         * 2重写模式:http://localhost/project/thinkphp_project/Index/user/id/1.html
         * 3兼容模式:http://localhost/project/thinkphp_project/index.php?s=/Index/user/id/1.html
         *
         */
//        echo C('URL_MODEL').'</br>';
        /**
         * U('模块/方法', array('id'=>1), 'xxxx html htm shtml', true/false, 'localhost')
         */
        echo U('Index/user', array('id'=>1), true, false, true);
	//$this->show('<style type="text/css">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} body{ background: #fff; font-family: "微软雅黑"; color: #333;} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.8em; font-size: 36px }</style><div style="padding: 24px 48px;"> <h1>:)</h1><p>欢迎使用 <b>ThinkPHP</b>！</p></div><script type="text/javascript" src="http://tajs.qq.com/stats?sId=9347272" charset="UTF-8"></script>','utf-8');
    }

    public function user(){
        echo 'id is:'.$_GET['id'].'<br/>';
        echo '这里是INDEX模块的user方法';
    }
}